<template>
  <div class="employee-page">
    <h1>前台员工主页</h1>
    <div class="guide-content">
      <h2>欢迎使用汽车租赁管理系统（员工端）</h2>
      <p>本系统为前台工作人员提供了高效便捷的汽车租赁业务处理平台。您可以通过以下功能快速处理业务：</p>
      <ul>
        <li><b>新建租赁单：</b>为客户办理新的汽车租赁业务，录入客户信息、选择车辆、设置租期等。</li>
        <li><b>管理客户信息：</b>查询客户的基本资料、历史租赁记录，辅助业务办理。</li>
        <li><b>更新租赁状态：</b>对正在进行的租赁订单进行状态变更，如还车、续租、异常上报等。</li>
        <li><b>员工个人信息管理：</b>修改员工个人资料、更新联系方式、修改登录密码等。</li>
      </ul>
      <p>如有疑问，请联系管理员或查阅操作手册。</p>

      <div class="quick-actions">
        <el-button type="primary" size="large" @click="$router.push('/employee/create')">
          <el-icon><Plus /></el-icon>
          新建租赁单
        </el-button>
        <el-button type="success" size="large" @click="$router.push('/employee/customers')">
          <el-icon><User /></el-icon>
          管理客户信息
        </el-button>
        <el-button type="warning" size="large" @click="$router.push('/employee/status')">
          <el-icon><Edit /></el-icon>
          更新租赁状态
        </el-button>
        <el-button type="info" size="large" @click="$router.push('/employee/profile')">
          <el-icon><User /></el-icon>
          个人信息
        </el-button>
      </div>
    </div>
  </div>
</template>

<script setup>
import { Plus, User, Edit } from '@element-plus/icons-vue'
</script>

<style scoped>
.employee-page {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.employee-page h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.employee-page h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.guide-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.guide-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.guide-content h2 {
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 600;
  position: relative;
  padding-left: 20px;
}

.guide-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.guide-content p {
  color: #5a6c7d;
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 16px;
  text-align: justify;
}

.guide-content ul {
  color: #5a6c7d;
  line-height: 2;
  margin-bottom: 35px;
  font-size: 16px;
  padding-left: 20px;
}

.guide-content li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 15px;
}

.guide-content li::before {
  content: '✨';
  position: absolute;
  left: -5px;
  top: 0;
}

.guide-content li b {
  color: #667eea;
  font-weight: 600;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 50px;
  padding: 20px 0;
}

.quick-actions .el-button {
  padding: 20px 25px;
  font-size: 16px;
  font-weight: 600;
  min-height: 60px;
  border-radius: 15px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quick-actions .el-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.quick-actions .el-button:hover::before {
  left: 100%;
}

.quick-actions .el-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quick-actions .el-button .el-icon {
  margin-right: 10px;
  font-size: 18px;
}

/* 按钮特定颜色 */
.quick-actions .el-button--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-actions .el-button--success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.quick-actions .el-button--warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quick-actions .el-button--info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

@media (max-width: 768px) {
  .quick-actions {
    flex-direction: column;
    align-items: center;
  }

  .quick-actions .el-button {
    width: 100%;
    max-width: 300px;
  }
}
</style>
